package edu.usc.summerizer;

import dragon.ir.summarize.ROUGE;
import edu.usc.utils.FileUtils;

public class Evaluation {

	public static void main(String[] args) {
		ROUGE r = new ROUGE();
		r.useRougeN(3);
		String testSummary = FileUtils.contentsOfTheFile("C:\\Ramesh\\works\\projects\\java_ws\\StorySummerizer\\resources\\testsummary");
		String refSummary1 = FileUtils.contentsOfTheFile("C:\\Ramesh\\works\\projects\\java_ws\\StorySummerizer\\resources\\refsummary1");
		String refSummary2 = FileUtils.contentsOfTheFile("C:\\Ramesh\\works\\projects\\java_ws\\StorySummerizer\\resources\\refsummary2");
		String[] refSummaries = new String[] {refSummary1, refSummary2};
		r.evaluate(testSummary, refSummaries);
		
		System.out.println(r.getFScore());
		System.out.println(r.getPrecision());
		System.out.println(r.getRecall());
	}

}
